package com.xunmaw.supermarket.service.role;

import com.xunmaw.supermarket.dao.RoleDao;
import com.xunmaw.supermarket.pojo.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 功能说明
 */
@Transactional(propagation = Propagation.REQUIRED, rollbackForClassName = "Exception")
@Service
public class RoleServiceImpl implements RoleService {
	
	@Autowired
	private RoleDao roleDao;
	
	@Override
	public List<Role> getRoleList() {
		return roleDao.getRoleList();
	}
}
